<!DOCTYPE html PUBLIC"-// W3C//DTD XHTML 1.0 Transitional//EN"" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0061)http://www.free-wordpress-theme.net/demo/?themedemo=persimmon -->
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">  
<head >    
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <title>Revendications</title>
    <link rel="stylesheet" href="${resource(dir:'css',file:'style.css')}" type="text/css" media="screen">
	
    <!--[if lte IE 6]>
<link href="http://www.free-wordpress-theme.net/demo/wp-content/themes/persimmon/ie6.css" rel="stylesheet" type="text/css" />
<![endif]-->

    <!--[if lte IE 7]>
<link href="http://www.free-wordpress-theme.net/demo/wp-content/themes/persimmon/ie7.css" rel="stylesheet" type="text/css" />
<![endif]-->

	<script src="${resource(dir:'js',file:'mootools.v1.11.js')}" type="text/javascript"></script>

    <meta name="robots" content="noindex,nofollow">
	<script type="text/javascript" src="${resource(dir:'js',file:'jquery.js')}"></script>

    <link rel="stylesheet" href="${resource(dir:'css',file:'default.css')}" type="text/css">
    <g:javascript library="prototype"/>

  </head>

  <body>

    <div id="page">

      <div id="header">

        <div id="description">



        </div> 


      </div>


      <div id="menu">

        <ul id="dropmenu">

          <li>
            <g:link controller="user" action="home" id="home" title="Home Page">
		       Home
		    </g:link>
          </li>



        </ul> 
        <div id="loginMenu" >
        	Login
          	<input type="text" id="loginText" name="login" value='${user?.login}'></input>
        </div>
		    
      </div>


      <div id="pbody">

        <hr>

        <div id="content">

          
		  <g:each in="${posts}" var="post">
   			<div class="spost" id="post-${post.id}">
            <h2 class="stitle">${post.title}</h2>
            <div class="entry">
              <div class="thumb">
              </div>
              <p>${post.content} &nbsp;
                
              	<a href="http://www.free-wordpress-theme.net/demo/2009/11/testing-a-custom-field/?themedemo=persimmon">
              		<b>more</b>
              	</a>
              </p>	
              <p>
                Poids : 
              	<label id="likeLab${post.id}" style="margin-right:20px">
   						 ${post.likes}
   				</label>
  			    <g:remoteLink action="like" update="likeLab${post.id}" controller="post" id="${post.id}">
	              J'appuie
	            </g:remoteLink>
  			  </p>
				
              
            	
            </div>	

          </div>

         </g:each>

          <div class="post" id="post-18">


            <h2 class="title">
              <a href="http://www.free-wordpress-theme.net/demo/2009/07/headings-and-a-paragraph/?themedemo=persimmon" rel="bookmark" title="Permanent Link to Headings and a paragraph">Headings and a paragraph              </a>            </h2>

            <div class="entry">

              <div class="thumb">
                <img width="150" height="100" src="./Test Drive Blog_files/film_roll.jpg" class="attachment-med-post-thumbnail wp-post-image" alt="film_roll" title="film_roll">              </div>

              <p>Heading 1
                Heading 2
                Heading 3
                Heading 4
                Heading 5
                Heading 6
                Aliquam erat volutpat. Integer eleifend dapibus est, in dictum eros volutpat facilisis. Suspendisse potenti.
                Phasellus ac massa nulla. Maecenas faucibus massa et elit gravida tempus. Ut ut felis metus. Donec fermentum turpis eget odio congue bibendum. Nulla imperdiet semper ipsum, a suscipit metus suscipit vehicula. Vestibulum tempor imperdiet mi, facilisis lobortis libero tristique ac. Cras sit amet diam vel felis iaculis varius. Morbi...&nbsp;                <a href="http://www.free-wordpress-theme.net/demo/2009/07/headings-and-a-paragraph/?themedemo=persimmon">                  <b>more                  </b>                </a>              </p>	
            </div>	

          </div>

        </div>
        <div id="sidebar">

          <div class="addthis_toolbox">

           
			<script type="text/javascript" src="./Test Drive Blog_files/addthis_widget.js"></script>
            <div class="atclear">            </div>          </div>

          <ul>
			<li>
              <h2>Navigation              </h2>

              <ul>
               
						<li>
							<g:link controller="user" action="showAll" id="allRevendic" title="Voir toutes les revendications">
		       						Toutes les revendications
		       				</g:link>
						</li>
      			
              </ul>
               <h2>Etudiants              </h2>

              <ul>
                <g:each in="${users}" var="user">
						<li>
							<g:link controller="user" action="showPosts" id="${user.id}" title="Voir les revendications de ${user.login}">
		       						${user.login} (${user.posts.size()})
		       				</g:link>
						</li>
      			 </g:each>
              </ul>

            </li>
			
          </ul>

        </div>

      </div>
      <div style="clear:both;">      </div>


    </div>

  </body></html>